/*
 * @Autor: ZhangYao
 * @Date: 2023-02-28 15:46:27
 * @LastEditors: ZhangYao
 * @LastEditTime: 2023-02-28 16:04:57
 */
export default {
  methods: {
    /**
     * 路由跳转，并关闭当前tag
     * @param {*当前路由} view
     * @param {*跳转路由} pushpath
     */
    RouterpushAndClosetag(view, pushpath) {
      this.$store.dispatch('delView', view).then(({ visitedViews }) => {
        this.$router.push(pushpath)
      })
    }
  }

}
